#include <bits/stdc++.h>
using namespace std;

int main()
{
	int n;
	cin >> n;
	int x1 = INT_MAX, x2 = INT_MIN, y1 = x1, y2 = x2;
	int px, py;
	for (int i = 0; i < n; i++)
	{
		cin >> px >> py;
		x2 = max(x2, px);
		x1 = min(x1, px);
		y1 = max(y1, py);
		y2 = min(y2, py);
	}
	double res = (x2 - x1) * (y2 - y1);
	printf("%.5lf", res);
	return 0;
}